<{include file="public/header.tpl"}>	
<div id="page-wrapper">
    <{ include file="public/title.tpl" }>
    <form  method="post" action="<{$url}>/update">
		
		<ul class="list-group">
			<input type="hidden" name="id" value="<{$post.id}>">
			<li class="list-group-item">
				<span class="label label-info">上级栏目</span>
					<{ $select }>
				</li>
			<li class="list-group-item">
				<span class="label label-info">栏目标题<span class="red_font">*</span></span>
				<input type="text" class="form-control" name="title" size="20" value="<{ $post.title }>">
			</li>
			<li class="list-group-item">
				<span class="label label-info" style="margin-top:30px">栏目描述</span>
				<textarea class="form-control" name="description" cols="30" rows="5"><{ $post.description }></textarea>
			</li>
			<li class="list-group-item">
						<span class="label label-info">栏目图片</span>
						<input type="hidden" id="picId" name="picid" value="">
						<img  style="cursor:pointer;"  onclick="showWin('<{$app}>/image/open')"  src="<{$public}>/uploads/<{ $post.picname }>" alt="图片预览" width=100 height="100" id="pic">		
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button"  class="button"  onclick="showWin('<{$app}>/image/open')" value="浏览...">	
			</li>
			<li class="list-group-item">
				<span class="label label-info">是否审核</span>
				<input type="radio"  name="audit" <{if $post.audit eq 1}>checked<{/if}>  value="1"> 需要
				<input type="radio"  name="audit" <{if $post.audit eq 0}>checked<{/if}> value="0"> 没必要
			</li>	
			<li class="list-group-item">
					<button type="submit" class="btn btn-primary">修 改</button>
				    &nbsp;&nbsp;
				    <button type="reset"  class="btn btn-primary">重 置</button>
				    &nbsp;&nbsp;
					<button type="button" class="btn btn-primary" onclick="if(confirm('确定要删除吗?')) window.location='<{$url}>/del/id/<{$post.id}>'">删 除</button>
			</li>
		</ul>	
    </form>	
</div>
<{include file="public/footer.tpl"}>	


